<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 3. 随机数组
        // 生成一个长度为10的数组，里面保存的元素为[1,100]的随机正整数
        // 提示：随机数的范围是 1 ≤ ? ≤ 100
        let arr = []
        for (let i = 0; i < 10; i++) {
            let num = Math.floor(Math.random() * (100) + 1)
            arr.push(num)
        }
        console.log(arr)

    </script>

</body>

</html>